import { _decorator, Component, EventMouse, HorizontalTextAlignment, instantiate, Label, Node, Prefab, resources, Sprite, SpriteFrame, UITransform, Vec3, VerticalTextAlignment } from 'cc';
import { NormalCellController } from './NormalCellController';
const { ccclass, property } = _decorator;

@ccclass('DiamondCellController')
export class DiamondCellController extends NormalCellController {
    @property({ type: Animation })
    public cellChangeAnimation: Animation | null = null;

    start() {

    }

    update(deltaTime: number) {

    }

    protected customClickToCell(event: EventMouse): void {

    }

    protected customCreatePrefab(item: Node, data: Object): void {
        item.getChildByName('Value').getComponent(Label).verticalAlign = VerticalTextAlignment.TOP
        item.getChildByName('Value').getComponent(Label).horizontalAlign = HorizontalTextAlignment.CENTER
    }

    protected customLoadPrefabCell(prefabPath: string, data: object): void {
    }
}


